package org.dtrd.modules.device.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 智能设备配置
 *
 * @author 萧
 * @date:2021-11-07 2:52 下午
 **/
@Configuration
@Slf4j
public class DeviceConfigrationV0 {

    @Value("${dtrd.device.config.xty.server}")
    private String xtyServer;
    @Value("${dtrd.device.config.xty.access_id}")
    private String xtyAccessId;
    @Value("${dtrd.device.config.xty.access_key}")
    private String xtyAccessKey;

    @Bean
    public void initDeviceConfig() {
        XtyApiConfig.SERVER_URL = xtyServer;
        XtyApiConfig.ACCESSID = xtyAccessId;
        XtyApiConfig.ACCESSKEY = xtyAccessKey;
    }


}
